import { createApp } from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import router from './router'
import store from './store'
import axios from 'axios'

//引入element-plus
import ElementPlus from 'element-plus'
//引入element-plus相关样式
import 'element-plus/dist/index.css'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import elementIcon from './plugins/icons'



const app = createApp(App)

app.config.globalProperties.$axios = axios

app.use(ElementPlus, {
    locale: zhCn
  })

app.use(store).use(elementIcon).use(ElementPlus).use(router).mount('#app')



